﻿@namespace BlazorFluentUI
@using BlazorFluentUI
@using Microsoft.AspNetCore.Components.Web
@typeparam TItem

@inherits FluentUIComponentBase

<div class=@($"{GlobalClassNames["root"]} {ClassName}")
     @ref="RootElementReference">
    @ChildContent
    @if (dragRect != null)
    {
        <div class=@($"{GlobalClassNames["dragMask"]}")/>
    }
    @if (dragRect != null)
    {
        <div class=@($"{GlobalClassNames["box"]}")
             style=@($"left:{dragRect.Left}px;top:{dragRect.Top}px;width:{dragRect.Width}px;height:{dragRect.Height}px;")>
            <div class=@($"{GlobalClassNames["boxFill"]}")/>
        </div>
    }
</div>